<!DOCTYPE html>
<html lang="en">
  <head>
    <title>ModalCenterPosition Enum Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Enum/ModalCenterPosition" class="dashAnchor"></a>
    <a title="ModalCenterPosition Enum Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">Presentr Docs</a> (38% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">Presentr Reference</a>
        <img id="carat" src="../img/carat.png" />
        ModalCenterPosition Enum Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/AlertAction.html">AlertAction</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AlertViewController.html">AlertViewController</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Presentr.html">Presentr</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enums</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/AlertActionStyle.html">AlertActionStyle</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/ModalCenterPosition.html">ModalCenterPosition</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/ModalSize.html">ModalSize</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/PresentationType.html">PresentationType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/TransitionType.html">TransitionType</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions.html#/s:C8Presentr18PresentrController">PresentrController</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/UIViewController.html">UIViewController</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Functions.html#/s:ZF8Presentroi2eeFTOS_16PresentationTypeS0__Sb">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:ZF8Presentroi2eeFTOS_9ModalSizeS0__Sb">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:ZF8Presentroi2eeFTOS_19ModalCenterPositionS0__Sb">==(_:_:)</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Typealiases.html">Typealiases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:8Presentr16FrameTransformer">FrameTransformer</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>ModalCenterPosition</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ModalCenterPosition</span></code></pre>

                </div>
              </div>
            <p>Describes the presented presented view controller&rsquo;s center position. It is meant to be non-specific, but we can use the &lsquo;calculatePoint&rsquo; method when we want to calculate the exact point by passing in the &lsquo;containerBounds&rsquo; rect that only the presentation controller should be aware of.</p>

<ul>
<li>Center:       Center of the screen.</li>
<li>TopCenter:    Center of the top half of the screen.</li>
<li>BottomCenter: Center of the bottom half of the screen.</li>
<li>Custom: A custom center position using a CGPoint which represents the center point of the presented view controller.</li>
<li>Custom: A custom center position to be calculated, using a CGPoint which represents the origin of the presented view controller.</li>
</ul>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FO8Presentr19ModalCenterPosition6CenterFMS0_S0_"></a>
                    <a name="//apple_ref/swift/Element/Center" class="dashAnchor"></a>
                    <a class="token" href="#/s:FO8Presentr19ModalCenterPosition6CenterFMS0_S0_">Center</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ModalCenterPosition</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FO8Presentr19ModalCenterPosition9TopCenterFMS0_S0_"></a>
                    <a name="//apple_ref/swift/Element/TopCenter" class="dashAnchor"></a>
                    <a class="token" href="#/s:FO8Presentr19ModalCenterPosition9TopCenterFMS0_S0_">TopCenter</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ModalCenterPosition</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FO8Presentr19ModalCenterPosition12BottomCenterFMS0_S0_"></a>
                    <a name="//apple_ref/swift/Element/BottomCenter" class="dashAnchor"></a>
                    <a class="token" href="#/s:FO8Presentr19ModalCenterPosition12BottomCenterFMS0_S0_">BottomCenter</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ModalCenterPosition</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FO8Presentr19ModalCenterPosition6CustomFMS0_FT11centerPointVSC7CGPoint_S0_"></a>
                    <a name="//apple_ref/swift/Element/Custom" class="dashAnchor"></a>
                    <a class="token" href="#/s:FO8Presentr19ModalCenterPosition6CustomFMS0_FT11centerPointVSC7CGPoint_S0_">Custom</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ModalCenterPosition</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FO8Presentr19ModalCenterPosition12CustomOriginFMS0_FT6originVSC7CGPoint_S0_"></a>
                    <a name="//apple_ref/swift/Element/CustomOrigin" class="dashAnchor"></a>
                    <a class="token" href="#/s:FO8Presentr19ModalCenterPosition12CustomOriginFMS0_FT6originVSC7CGPoint_S0_">CustomOrigin</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ModalCenterPosition</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2016 <a class="link" href="http://github.com/icalialabs/Presentr" target="_blank" rel="external">Daniel Lozano</a>. All rights reserved. (Last updated: 2016-07-06)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
